home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / Triad.dxr / playing cards_58_t hotti.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  1.1 KB  |  53 lines

  1. property spriteNum, row, fp
  2. global tableau, equal, currentsel, getlist, godlist, basecard
  3.  
  4. on beginSprite me
  5.   row = determinerow()
  6.   can = [#one: 31, #two: 45, #three: 59, #four: 73]
  7.   fp = can[row]
  8. end
  9.  
  10. on determinerow me
  11.   if spriteNum = 87 then
  12.     return #one
  13.   else
  14.     if spriteNum = 88 then
  15.       return #two
  16.     else
  17.       if spriteNum = 89 then
  18.         return #three
  19.       else
  20.         if spriteNum = 90 then
  21.           return #four
  22.         end if
  23.       end if
  24.     end if
  25.   end if
  26. end
  27.  
  28. on mouseEnter me
  29.   if getlist <> VOID then
  30.     if tableau[row].getcardcount() < 14 then
  31.       if tableau[row].getcardcount() > 0 then
  32.         if getlist.getlastcard().rankvalue = (tableau[row].getlastcard().rankvalue - 1) then
  33.           equal = 1
  34.           godlist = tableau[row]
  35.           currentsel = tableau[row].getlastcard().spnum + 1
  36.         end if
  37.       else
  38.         if tableau[row].getcardcount() = 0 then
  39.           equal = 1
  40.           godlist = tableau[row]
  41.           currentsel = fp
  42.         end if
  43.       end if
  44.     end if
  45.   end if
  46. end
  47.  
  48. on mouseLeave me
  49.   equal = 0
  50.   currentsel = 0
  51.   godlist = VOID
  52. end
  53.